
export default (params)=>{  

    //加载中
    uni.showLoading({
        title: "加载中"
    });
    return new Promise((resolve,reject)=>{
        wx.request({
            ...params,
            success:(res)=>{
                resolve(res.data);
            },
            fail:(res)=>{
                reject(res);
            },
            complete(){
                uni.hideLoading();
            }
        })
       
    })
}